
#ifndef __SLAVEZJ_H
#define __SLAVEZJ_H

#include  "cfg_main.h"

#define  METER_ZJ_FRAME_START_CH        0x68
#define  METER_ZJ_FRAME_END_CH          0x0d

#define  METER_ZJ_FRAME_EXT_LEN         4
#define  METER_ZJ_ADDR_LEN              1

__packed typedef struct
{
    INT8U header1;
    INT8U datalen1;
    INT8U datalen2;
    INT8U header2;
    INT8U addr;
    INT8U data[1];
}MeterZJFrameType;

INT8U ReadSlaveZJDataRepeatNoBaud
    (INT16U dataId, INT8U *buff, INT16U buffSize, INT16U *retSize, MeterAddrType *slaveAddr, CommPortType *port);

#endif

